package io.ouka.jvm.hotspot.selfread.methodinvoke;

import io.ouka.jvm.hotspot.selfread.domain.MethodInfo;

/**
 * @author ouka
 * JavaVFrame
 */
//栈帧
public class JavaVFrame extends VFrame{
    private  StackValueCollection local;

    private StackValueCollection stack = new StackValueCollection();

    private MethodInfo ownerMethod;


    public JavaVFrame(int max, MethodInfo ownerMethod) {
        this.local = new StackValueCollection(max);
        this.ownerMethod = ownerMethod;
    }

    public StackValueCollection getLocal() {
        return local;
    }

    public void setLocal(StackValueCollection local) {
        this.local = local;
    }

    public StackValueCollection getStack() {
        return stack;
    }

    public void setStack(StackValueCollection stack) {
        this.stack = stack;
    }

    public MethodInfo getOwnerMethod() {
        return ownerMethod;
    }

    public void setOwnerMethod(MethodInfo ownerMethod) {
        this.ownerMethod = ownerMethod;
    }
}
